home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Utilities / Remotes / Source / StuartSpeaker.h < prev    next >
Encoding:
Text File  |  1992-09-22  |  1.2 KB  |  44 lines

  1. /* Copyright (c) 1990, 1992, Scott Hess.  No rights reserved.  No
  2.  * warranty is provided for this software, neither explicit nor
  3.  * implied.  The source and object code for this file may be used
  4.  * and modified as the user sees fit.
  5.  */
  6. #import <appkit/Speaker.h>
  7. #import <objc/NXStringTable.h>
  8.  
  9. @interface StuartSpeaker : Speaker
  10. {
  11.     NXStringTable *defaults;    /* The defaults for Stuart. */
  12. }
  13.  
  14. - init;
  15. - free;
  16.  
  17. /* These are my primitive functions.  Don't use them directly, I'd
  18.  * say.
  19.  */
  20. -(int)_stuartNew:(char *)defs activate:(int)flag;
  21. -(int)_stuartGet:(char **)defs;
  22.  
  23. /* These are for setting and getting the default values from the
  24.  * local storage.
  25.  */
  26. -(const char *)default:(const char *)name;
  27. -(int)defaultAsInt:(const char *)name;
  28. -(float)defaultAsFloat:(const char *)name;
  29. -(BOOL)defaultAsBOOL:(const char *)name;
  30. - default:(const char *)name as:(const char *)value;
  31. - default:(const char *)name asInt:(int)value;
  32. - default:(const char *)name asFloat:(float)value;
  33. - default:(const char *)name asBOOL:(BOOL)value;
  34. - removeDefault:(const char *)name;
  35.  
  36. /* These communicate with Stuart. */
  37. -(int)stuartNew;
  38. -(int)stuartGet;
  39. -(int)stuartSend:(int)fd;
  40. -(int)stuartConnectAndNew;
  41. -(int)stuartConnectAndGet;
  42. -(int)stuartConnectAndSend:(int)fd;
  43. @end
  44.